package com.kmzx.one.project.service;

import com.kmzx.one.project.others.dto.FreightDetailInfo;
import com.kmzx.one.project.others.dto.FreightInfo;
import com.kmzx.one.project.others.dto.UserCashInfo;
import com.kmzx.one.project.others.dto.UserProfitDetailInfo;
import com.kmzx.one.project.others.dto.UserProfitInfo;

import java.math.BigDecimal;
import java.util.List;

public interface UserProfitService extends BaseService {

    UserProfitInfo findUserProfit(String userId) throws Exception;

    List<UserProfitDetailInfo> findUserInOrOutcomeMore(String userId, Integer pageNum, Integer pageSize, int type) throws Exception;

    Integer doUserCashBack(String userId, BigDecimal money) throws Exception;

    UserCashInfo findUserCashInfo(String userId, String cashId) throws Exception;

    Integer doReadCash(String cashId) throws Exception;

    FreightInfo findUserFreight(String userId) throws Exception;

    List<FreightDetailInfo> findUserFreightPager(String userId, Integer pageNum, Integer pageSize) throws Exception;

    Object doBuyUserRanks(String userId, BigDecimal money) throws Exception;

    BigDecimal myEverWithdraw(String userId);

    int checkWithdrawAllow();

    String findUserProfitMsg(String userId,String tempId);
}
